#!/bin/bash
#useradd -ms /bin/bash galaxykube
#usermod -aG docker galaxykube
su galaxykube
#minikube start --cpus 2 --memory 7168 --image-mirror-country cn --registry-mirror=https://docker.mirrors.sjtug.sjtu.edu.cn

minikube start   --image-mirror-country cn --registry-mirror=https://docker.mirrors.sjtug.sjtu.edu.cn   --kubernetes-version 1.23.3
#设置其他电脑访问minikube dashboard --url
# kubectl proxy --address='192.168.3.39'  --accept-hosts='^*$' --port=8009

#进入mysql
kubectl run -it --rm --image=mysql:5.7 --restart=Never mysql-client -- mysql -h mysql -ppassword 

#端口转发
kubectl port-forward --address 0.0.0.0 service/nacos-headless 8848

#前端端口转发
kubectl port-forward --address 0.0.0.0 service/ruoyi-ui 8080
